package com.zxy.ziems.server.scene.mapper;

import com.zxy.ziems.server.scene.pojo.entity.SceneEntity;
import com.zxy.ziems.server.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chdzq
 * @create 2023/3/21
 */
@Mapper
public interface SceneMapper extends BaseMapperX<SceneEntity> {

    List<SceneEntity> selectInheritListBy(@Param("id") String id);

    /**
     * 获取全部包含子节点的场景
     * @param code
     * @return
     */
    List<SceneEntity> selectAllListByCode(@Param("code") String code);


}